package ua.races.dom.analyzerDirector.decoratedAnalyzer;

import ua.races.dom.analyzerDirector.BetTypeDocumentAnalyzer;
import org.w3c.dom.Element;
import ua.races.vo.BetType;

import java.util.ArrayList;
import java.util.List;

public class DecoratedBetTypeDocumentAnalyzer extends BetTypeDocumentAnalyzer{

      private List<BetType> betTypes = new ArrayList<BetType>();

    @Override
    public void buildList(Element root) {
        super.buildList(root);
        betTypes.addAll(entities);
    }

    @Override
    public List<BetType> getEntities() {
        return betTypes;
    }
}
